#include "junix.h"
using namespace std;

class B
{
	public:
	B():i(888){}
	int i;
	protected:
	private:
};

class C
{
	public:
	C():i(999){}
	int i;
	protected:
	private:
};

class D:public B,public C
{
	public:
	protected:
	private:
};

class E:public virtual  B
{
	public:
	protected:
	private:
};

class F:public virtual B
{
	public:
	protected:
	private:
};

class G:public E,public F
{
	public:
	protected:
	private:
};
int main(int argc, char **argv)
{
	D d;
	std::cout<<d.B::i<<std::endl;
	std::cout<<d.C::i<<std::endl;

	G g;
	std::cout<<g.i<<std::endl;
	g.E::B::i=9999;
	std::cout<<g.F::B::i<<std::endl;
}
